package graphics;

import java.awt.event.ActionEvent;

import utils.Debug;

public class RadioAction extends EnvListeners {
	
	public RadioAction(EnvironmentView envView) {
		super(envView);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		Debug.println("Radio action " + e.getActionCommand());
		envView.setExtendedSim(false);
		envView.setParalelSim(false);
		if (e.getActionCommand().compareTo("Charts Only") == 0)	;
		else if (e.getActionCommand().compareTo("Extended View") == 0)
			envView.setExtendedSim(true);
		else
			envView.setParalelSim(true);
	}

}
